<!-- BEGIN PAGE HEADER-->
<h3 class="page-title">
    发现页 —— 头像
    <small></small>
</h3>
<div class="page-bar">
    <ul class="page-breadcrumb">
        <li>
            <i class="fa fa-home"></i>
            <a href="index.html">Home</a>
            <i class="fa fa-angle-right"></i>
        </li>
        <li>
            <a href="#">APP参数管理</a>
            <i class="fa fa-angle-right"></i>
        </li>
        <li>
            <a href="#">发现页 —— 头像</a>
        </li>
    </ul>
</div>
<!-- END PAGE HEADER-->
<div class="modal fade" id="portlet-config" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title">消息提示</h4>
            </div>
            <div class="modal-body" style="text-align:center; font-size: 16px">
                确定删除此数据?
            </div>
            <div class="modal-footer">
                <button type="button" class="btn blue table-group-action-del" data-dismiss="modal">删除</button>
                <button type="button" class="btn default" data-dismiss="modal">取消</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<!-- BEGIN PAGE CONTENT-->
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN EXAMPLE TABLE PORTLET-->
        <div class="portlet box grey-cascade">
            <div class="portlet-title">
                <div class="caption">
                    <i class="fa fa-globe"></i>头像
                </div>
                <div class="tools">
                    <a href="javascript:;" class="collapse">
                    </a>
                    <a href="javascript:;" class="reload">
                    </a>
                    <a href="javascript:;" class="remove">
                    </a>
                </div>
            </div>
            <div class="portlet-body">
                <div class="table-toolbar">
                    <div class="row">
                        <!--有添加数据的时候使用-->
                        <div class="col-md-6">
                            <div class="btn-group">
                                <button id="sample_editable_1_new" class="btn green" onclick="window.location.href='/admin/avatar/add'">
                                    Add New <i class="fa fa-plus"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                <table class="table table-striped table-bordered table-hover" id="sample_1">
                    <thead>
                    <tr>
                        <th class="table-checkbox">
                            <input type="checkbox" class="group-checkable" data-set="#sample_1 .checkboxes"/>
                        </th>
                        <th>
                            ID
                        </th>
                        <th>
                            名称
                        </th>
                        <th>
                            排序
                        </th>
                        <th>
                            状态
                        </th>
                        <th>
                            最后更新时间
                        </th>
                        <th>
                            操作
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach($lists as $value) { ?>
                        <tr class="odd gradeX">
                            <td>
                                <input type="checkbox" class="checkboxes" value="<?php echo $value->getId(); ?>"/>

                            </td>
                            <td>
                                <?php echo $value->getId(); ?>
                            </td>
                            <td>
                                <?php echo $value->getUrl(); ?>
                            </td>
                            <td>
                                <?php echo $value->getRerder(); ?>
                            </td>
                            <td>
                                <?php if($value->getStatus()==1) { ?>
                                    <span class="btn btn-xs green">显示</span>
                                <?php }elseif($value->getStatus()==0) {?>
                                    <span class="btn btn-xs red">禁止</span>
                                <?php }?>
                            </td>
                            <td>
                                <?php echo date('Y-m-d H:i:s',$value->getUpdate_time());?>
                            </td>
                            <td>
                                <a class="btn btn-xs yellow" href="/admin/sparringgame/edit?id=<?php echo $value->getId(); ?>">编辑</a>
                                <a class="btn btn-xs red delData" data-toggle="modal" href="#portlet-config" value="/admin/sparringgame/del?id=<?php echo $value->getId();?>">删除</a>

                            </td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>
                <?php
                $data = [
                    'count'   => $this->count,
                    'page'    => $this->page,
                    'perPage' => $this->perPage,
                ];
                echo $this->render('../../../views/layouts/pager.phtml', $data);
                ?>
            </div>
        </div>
        <!-- END EXAMPLE TABLE PORTLET-->
    </div>
</div>
<!-- END PAGE CONTENT-->